package com.dyz.wsw.domain.admin.repository.persist;

import com.dyz.wsw.domain.admin.pojo.AdminUser;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

/**
 * @author dyz
 * @date 2025/1/13 18:28
 */
@Repository
public interface AdminUserRepository extends R2dbcRepository<AdminUser, Long> {


    @Query("SELECT * FROM admin_user WHERE username=:username")
    Mono<AdminUser> findUserByUsername(String username);
}
